import  request  from  '@/utils/request';

/* 封装登录login函数 */
export const loginForm = (obj) => {
  return request({
    url: '/api/login',
    method: 'post',
    data: obj
  })
}

/* 封装注册函数 */
export const regForm = (obj) => {
  return request({
    url: '/api/reg',
    method: 'post',
    data: obj
  })
}
